package cn.edu.Day04;

import java.util.Date;

public class Test2 {
    public static void main(String[] args) {
        System.out.println(Math.abs(-78));
        System.out.println("立方根"+Math.cbrt(64));
        System.out.println("随机小数："+Math.random());
        System.out.println("平方根："+Math.sqrt(9));
        System.out.println("3的3次方："+Math.pow(3,3));
        System.out.println(Math.sin(2));
        System.out.println(Math.floor(3.99));//去尾法
        System.out.println(Math.ceil(3.49));//进一法
        System.out.println(Math.ceil(-3.49));
        System.out.println(Math.rint(3.5));
        System.out.println(Math.rint(4.5));//四舍五入法，如果是单数就进位，如果是双数就不在进位（单进双出）
        Date date=new Date();
        System.out.println(date.getTime());
    }
}
